// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(78,1) == 0 && gf(78,4) == 0;
	question = "special";
	text1 = "You enter the East Ward of the Shaper Citadel, one of three neighborhoods surrounding the massive stone dome in the center.";
	text2 = "It is a strange and disorienting experience. For the first time since you became conscious again, you are in a place that has not been savaged by war. For a few moments, you experience what peace feels like.";
	text3 = "Here, the buildings are intact. The people seem relatively carefree. Even the mountain air seems cleaner.";
	text4 = "A stone road stretches off to the west, cutting through the middle of the ward. At the far end is the Shaper Citadel, where, soon, the Shaper Council will meet. And the future of Terrestia will be decided.";
	action = SET_SDF 78 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(78,2) == 0 && gf(78,4) == 1;
	question = "special";
	text1 = "You enter the East Ward of the Shaper Citadel, one of three neighborhoods surrounding the massive stone dome in the center.";
	text2 = "It is a strange and disorienting experience. For the first time since you became conscious again, you are in a place that has not already been savaged by war. Not until now, anyway.";
	text3 = "Now you can see, just ahead, several drakons. They are making creations and sending them out into the city to test the Shaper defenses.";
	text4 = "Of course, there are other rebels nearby, attacking in different areas. However, even counting them, this seems a painfully inadequate force with which to challenge what is left of the Council.";
	text5 = "One of the drakons, much larger and more powerful than the others, turns and notices you. He waves you forward.";
	action = SET_SDF 78 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(78,3) == 0;
	question = "special";
	text1 = "You are much closer to the Shaper Citadel now. It is an enormous stone dome, centuries old, perched on a mountain peak a few hundred feet above you. There is a tunnel in the mountain face just ahead, which you can use to get up there.";
	text2 = "It is the greatest work of Shaper architecture, both lovely and terrifying. Its power and remoteness perfectly symbolize the role the Shapers have assigned for themselves in Terrestia.";
	text3 = "And soon, you will be inside it. Even with all you have risked, all you have been through, it is frightening. Which is, of course, the reaction the hall was perfectly designed to elicit."; 
	action = SET_SDF 78 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Unfortunately, the rebel raiders know of your traitorous actions against the drakons. The rebel forces turn on you. You find yourself deep in Shaper lands, hunted by both them and the rebels.";
	text2 = "This is a very bad time and place to be entirely friendless. You are not able to escape ...";
	code =
		erase_char(1000);
	break;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Unfortunately, this is the worst possible place to be seen flaunting the rules of the Shapers. Your nature makes you very suspicious as it is.";
	text2 = "You rapidly find yourself deep in Shaper lands, hunted, and without friends. You are captured and dumped in a cell.";
	text3 = "You are freed eventually. By the time you emerge into the sunlight, however, your absence has enabled events to take a distinct turn for the worse. It is too late for you to turn things around ...";
	code =
		erase_char(1000);
	break;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to speak with one of the drakons. The creature is trying to make more creations to assault the west gate. The creations are weak and poorly made, though, a clear symptom of a weak essence supply.";
	text2 = "The drakon says, _If you need guidance, talk to Akhari Blaze. And hurry._";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a clearing up here, surrounded by crumbling, ancient stone pillars. It looks like it was once used for meetings or rituals, far in the past. Now it is neglected and overgrown, waiting for someone to build shops up here.";
	text2 = "Three figures are waiting for you at the far end of the clearing. You move forward to greet them.";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The guards at the Citadel are not as impressive as you expected. Some are old. Others were badly wounded in one of the eastern campaigns. It makes sense that the less able-bodied defenders would be kept back here.";
	text2 = "They seem to appreciate their lucky position, and they are modest and courteous. You don't learn anything from them, apart from the fact that the meeting of the Council is an event of great importance, and they've been on constant patrols.";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several creations in and around the pens here, waiting to be called into duty if the Citadel is attacked.";
	text2 = "Of course, it is hard to imagine any way that Ghaldring and his rebels could actually get an attack force this far west.";

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The meeting of the Council has attracted a wide variety of merchants, local officials, and courtiers, each of whom has his or her own goal for gaining influence or wealth.";
	text2 = "Even though you can see the Council, none of them want to talk to you. You are seen as eccentric enough that being associated with you might not have a great benefit.";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The Citadel East Ward has a variety of serviles working here. They deliver messages, sweep the roads, and keep the place running.";
	text2 = "None of them seem very happy, but, compared to how things are in the Dera Reaches, this is a paradise.";

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The gateway into the Council Hall is closed. One of the guards explains that the Council is not yet about to meet. You should go and take advantage of the town in the meantime.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "";

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  East Ward Smithy";

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Schmader's Supplies";

begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  ALCHEMICAL WORKINGS";

begintalknode 18;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  EAST WARD CREATION DEFENSE";
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Akhari Blaze";
	text1 = "The massive drakon leading this part of the assault turns to face you. He is quite old. He is also, after Ghaldring, the largest, most powerful drakon you have met.";
	text2 = "Power radiates off of him. He has been generating creations all day, and yet he is still seemingly completely fresh. His scales are faded and show the scars of many terrible battles.";
	text3 = "He says, _You have come at the right time. We could use more strength for the final push. I am Akhari Blaze, and this is the day of our greatest victory._";
	text5 = "Akhari Blaze takes a moment to Shape a new battle beta and send it west to guaranteed death. Then he turns to you. _Talk is good. Planning is good. But this is the time to act._";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "Who are you?";
	text1 = "_I am Akhari Blaze! Of The Ashen Isles! Of Northforge Citadel! Creator of the Unbound, scourge of the Shapers. And Ghaldring gave me the honor of leading the final assault. I will destroy the Council at last._";
	text2 = "You notice that, like a small number of drayks and drakons, Akhari Blaze's speech is unaccented. He doesn't hiss when he says 's'.";
	
begintalknode 32;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "You have fought the Shapers for a long time?";
	text1 = "_I was made to fight them. Few have reduced their number more than I. I am a true hero of the rebellion._";

begintalknode 33;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "You came from Northforge Citadel?";
	text1 = "_That was where I was, in the northeastern wastes of Terrestia. Performing research and creating Unbound._";
	text2 = "_I was bitter, though. I wanted to be at the front of the advance, not the back. Ghaldring heard my complaints, and he understood._";

begintalknode 34;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Ghaldring sent you here? Where is Ghaldring?";
	text1 = "_Ghaldring is close. He too is in battle, keeping the Shaper forces at bay so we are not trapped here._";
	text2 = "_Your task is to aid me. We have one final blow to strike. We will cut off the head of the Shaper army._";

begintalknode 35;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "What is our mission?";
	text1 = "_The Shaper Council was about to meet. The last three members of it came together. And, when our spy sent us the message that they were there, we attacked._";
	text2 = "_They have a defensive line before their gate. We will break through it, go in there, and slay the three of them._";

begintalknode 36;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Who was the spy?";
	text1 = "_A servile named Mehken. Very skilled at impersonating a loyal servile and infiltrating Shaper lands. I have not met her, but she was a great aid._";

begintalknode 37;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "The Council is in there now?";
	text1 = "_They are. I can feel them. Such power in one place cannot be hidden._";

begintalknode 38;
	state = 32;
	nextstate = 33;
	condition = 1;
	question = "What makes you think they will stay and fight us?";
	text1 = "Akhari Blaze laughs. _You understand little of Shapers. They are like the drakons, in a way. It is like the ... What is it? The human captain, with the ship?_";
	text2 = "_We are raiding the heart of the Shaper lands. With skill, we took advantage of their disarray with this lunge. The size of this force was carefully calibrated._";

begintalknode 39;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "How so?";
	text1 = "_The Council would rather die than let the rebels seize their hall, the heart of Shaper rule. Especially to so few attackers. If we were stronger, they might see sanity and flee._";
	text2 = "_But the humiliation of losing their dome to us? Unbearable. No, they will fight us. It is now up to us to win._";

begintalknode 40;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Why haven't they counterattacked?";
	text1 = "_The rest of our forces, with Ghaldring, is holding them back at the passes. They are giving us the time we need to attack. Now we must hurry._";

begintalknode 41;
	state = 30;
	nextstate = 34;
	condition = 1;
	question = "How should I help in the attack?";
	text1 = "Akhari Blaze points to the west. _The defenders are there. Attack._";
	text2 = "_I will create creations to support you. You are the Lifecrafter, the shock troop, that will break through and let us follow you into the Council dome._";

begintalknode 42;
	state = 34;
	nextstate = -1;
	condition = 1;
	question = "And how will you help me?";
	text1 = "_As I said. I will send creations. They will fight alongside you._";

begintalknode 43;
	state = 34;
	nextstate = 35;
	condition = gf(78,6) == 0;
	question = "Can I get any more help than that?";
	text1 = "_Our forces are limited, as you see. It is lucky that we have not yet been crushed. I have no more to spare. And, if what Ghaldring told me was true, you don't need it._";
	text2 = "_I must hold some things in reserve, to aid us in the final fight with the Council._";

begintalknode 44;
	state = 35;
	nextstate = 30;
	condition = get_stat(20) >= 11;
	question = "If I can't break through, your extra forces won't help. You must aid me.";
	text1 = "You narrowly manage to convince Ahkari Blaze that you make sense. _All right. Say the word, and I will send two drakons to aid you in the attack. Be sure to support them. Do not let their lives be wasted._";
	code =
		sf(78,6,1);
	break;
	
begintalknode 45;
	state = 30;
	nextstate = -1;
	condition = gf(78,6) == 1;
	question = "All right. Send the drakons to attack.";
	text1 = "Akhari Blaze nods and waves a clawed hand toward the western gate. Without hesitation, two of his huge drakons begin to walk west.";
	text2 = "_Go with them. Assault the enemy. Don't fail._";
	action = END_TALK;
	code =
		sf(78,6,2);
		set_walk_speed(30,22);
		set_walk_speed(31,22);
		force_char_status(30,0,25);
		force_char_status(30,1,25);
		force_char_status(30,8,25);
		force_char_status(31,0,25);
		force_char_status(31,1,25);
		force_char_status(31,8,25);
		set_new_abil(30,20);
		set_new_abil(31,20);
	break;
	
begintalknode 46;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "That is all I need to know.";
	text1 = "_Then go west. Break their line. We have little time left._";
	action = END_TALK;

	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "The three figures waiting for you are serviles. They are standing upright. And they are armed. They must be spies. Fortunately, their batons and blades are not yet pointed at you.";
	text2 = "Then the servile in the middle pulls back her hood, and you can see who it is. It is Mehken. There is a pleasing symmetry to this. She was there at the beginning of your journey. She is here at the end. She seems pleased to see you.";
	text3 = "_Greetings, Lifecrafter,_ she says. _I am glad that you found your way to me. The Council meets soon. First, we must speak._";
	
begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "How did you get here?";
	text1 = "She smiles. _Do you not know by now? I enter Shaper lands when I please, and I stay as long as I need. Some of us are born with gifts. That is mine._";
	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "What do you know about the Council?";
	text1 = "_That it is about to meet. And that you must speak before it. It will benefit the rebellion._";
	
begintalknode 53;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Why did you need to speak with me?";
	text1 = "_Your faction is close to victory in the Council. Unfortunately, it has enemies among the more loyal, closed-minded of their kind. Just as they tried to assassinate Astoria, they are going to try to kill you._";
	text2 = "_Be prepared._";
	
begintalknode 54;
	state = 51;
	nextstate = 52;
	condition = 1;
	question = "They are going to try to kill me?";
	text1 = "_Actually, now that you have come up here, alone and far from aid, they will probably strike very soon. You should prepare yourself._";
	
begintalknode 55;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "What? Mehken, you led me into a trap?";
	text1 = "_No. The trap was already here. I let you face it when you were ready. You would not, I think, prefer to wake up in the middle of the night with a slit throat._";
	
begintalknode 56;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Who is coming after me?";
	text1 = "_I do not know. Watch out for anyone trying to stab you. That will provide an excellent indication._ You are not sure that you appreciate her attempts at dry humor.";
	
begintalknode 57;
	state = 52;
	nextstate = -1;
	condition = get_stat(20) >= 10;
	question = "You need to help me. I am not ready for this fight.";
	text1 = "Mehken looks miserable. _I am torn. I am not supposed to lose my cover, but ... If you do not make the meeting, all is lost._";
	text2 = "_This is a real loss, but we will stay nearby. We will aid you. And ..._ She looks down the hill behind you. _And it appears they have found you sooner than we thought they would._";
	text3 = "As the serviles prepare to fight, you look behind you. Someone has entered the clearing behind you, trapping you.";
	action = END_TALK;
	code =
		sf(78,7,1);
		
	break;
	
begintalknode 58;
	state = 52;
	nextstate = 53;
	condition = get_stat(20) < 10;
	question = "You need to help me.";
	text1 = "_I can't. I and my fellow spies must not break our cover. There is much more we need to do._";

begintalknode 59;
	state = 52;
	nextstate = 53;
	condition = 1;
	question = "Thank you for the warning. You should go now.";
	text1 = "_We will. Thank you for not getting us to aid you. I and my fellow spies must not break our cover. There is much more we need to do._";

begintalknode 60;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Where will you go now?";
	text1 = "_West. Once your victory is won, we must begin preparations for the next step. We wish you luck. And ..._ She looks down the hill behind you. _And it appears they have found you sooner than we thought they would._";
	text2 = "_It has been an honor to meet you. Safe travels. And ... We have to go. Now._";
	text3 = "As the serviles try to slip away, you look behind you. Someone has entered the clearing behind you, trapping you.";
	action = END_TALK;
	code =
		set_attitude(64,4);
		set_attitude(65,4);
		set_attitude(66,4);
	break;


//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "The three figures waiting for you are serviles. They are standing upright. And they are armed. They must be spies. Fortunately, their batons and blades are not yet pointed at you.";
	text2 = "Then the servile in the middle pulls back her hood, and you can see who it is. It is Mehken. There is a pleasing symmetry to this. She was there at the beginning of your journey. She is here at the end. And yet, she seems very unhappy to see you.";
	text3 = "_Greetings, Lifecrafter,_ she says. _I am glad that you found your way to me. The Council meets soon. First, we must speak._";

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "How did you get here?";
	text1 = "She smiles. _Do you not know by now? I enter Shaper lands when I please, and I stay as long as I need. Some of us are born with gifts. That is mine._";
	
begintalknode 72;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "What do you know about the Council?";
	text1 = "_That it is about to meet. And that you must speak before it. I must, as always, do what I can for the rebellion._";

begintalknode 73;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "Why did you need to speak with me?";
	text1 = "She shakes her head. _More than speak. When you left the Whitespires, I knew that you had power and that you could turn that power into influence. I hoped that you would act for justice._";
	text2 = "_Instead, the Shapers were able to win you over. They bought you, as they bought so many others. And now ..._";

begintalknode 74;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "And now?";
	text1 = "The serviles raise their weapons. Batons are now pointed at your heart. Mehken looks like she really regrets this, though that is doing you little good.";
	text2 = "_You have the ability to shift the Council in a way that hurts the rebellion. You can never be allowed to speak with them. You need to die. I was there when you came out of oblivion. I must now send you back to it._";

begintalknode 75;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Do you really think my death will make a difference?";
	text1 = "_I doubt it. The Council has direction now. They did not before. After your death, your actions will live on, causing great losses to the rebellion._";
	text2 = "_Still, we must make an effort._";

begintalknode 76;
	state = 72;
	nextstate = -1;
	condition = get_stat(20) < 10;
	question = "Attacking me is futile. You still have a chance to survive, if you leave now.";
	text1 = "Mehken is proud and independent, but she is still a creation. You can't use your will to control her, but you might be able to influence her. You speak slowly and calmly, trying to shift her course of action.";
	text2 = "Alas, she easily shrugs off your attempts. She has been free for too long. _No, your Shaper tricks won't work. Though it saddens me greatly that you tried to use them on me._";
	
begintalknode 77;
	state = 72;
	nextstate = -1;
	condition = get_stat(20) >= 10;
	question = "Attacking me is futile. You still have a chance to survive, if you leave now.";
	text1 = "Mehken is proud and independent, but she is still a creation. You can't use your will to control her, but you might be able to influence her. You speak slowly and calmly, trying to shift her course of action.";
	text2 = "And, in the end, she spent too many years in the mountains with you to be able to kill you. She is a spy, not an assassin. _I ... This is futile. I must go east. I must work to protect the rebellion from what will happen._";
	text3 = "_I will not ask for your mercy. I will not abase myself. The next time we meet, I will not stay my hand. Now you do what you must do, and I will do what I must do._";
	text4 = "The serviles turn away. They are trying to flee the mountains before you can raise an alarm.";
	action = END_TALK;
	code =
		set_attitude(64,4);
		set_attitude(65,4);
		set_attitude(66,4);
	break;

begintalknode 78;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "All right, rebel. If you are so eager to die, I will help you along.";
	text1 = "Mehken nods. _Thank you for making this quick. I think it will be easier for all of us this way._";
	action = END_TALK;
	code =
		set_attitude(64,10);
		set_attitude(65,10);
		set_attitude(66,10);
	break;
	
begintalknode 85;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Mehken falls to the ground, mortally wounded. She looks up at you. She seems confused, as if she can't comprehend what has happened. She is a spy, after all, not a warrior. How did she get in this mess?";
	text2 = "And then she closes her eyes. The rebellion has had few servants who were so loyal.";
	code =
		sf(101,0,1);
	break;
	
begintalknode 86;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The battle won, Mehken nods to you. _Now we must flee to safety. Get to the Council. Promise what you must. Convince them that our path is just. Now you are Terrestia's best hope for peace._";
	text2 = "She leaves for the east gate, hoping to get there before an alarm is raised.";
	action = END_TALK;
	code =
		set_attitude(64,4);
		set_attitude(65,4);
		set_attitude(66,4);
	break;

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Steen";
	text1 = "The East Ward of the Shaper Council features a huge, luxurious inn, suitable to the many wealthy and influential people who come from all over. Right now, everyone here is from the coastal provinces, overflow from the other wards.";
	text2 = "The proprietor of the inn is a large, sweaty man. He is struggling to keep up with the constant demands of his many haughty customers. Eventually, you get his attention.";
	text3 = "_Welcome to the Roasting Ornk, finest inn in any of the wards. I'm Steen. The rooms are full, but we have drinks and roast meat. What can I do for you?_";
	text5 = "Steen is very busy, but you eventually manage to flag him down again. _Yes? What do you need?_";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "Why are you so busy?";
	text1 = "_It's always like this just before and after Council meetings. Everyone comes to try to get the ear of the Shapers. These are the times that keep me in business._";
	text2 = "_Of course, with the war, we mainly get those who can't get quarters in the other wards._";

begintalknode 92;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "Why only customers from the other wards?";
	text1 = "_Normally I would be serving those from the Storm Plains and the Mera-Tev. But they're quarantined. No refugees are being let in. So I'm stuck with the seconds from the other wards._";
	text2 = "_At least there are always far more people coming up here than there are rooms._";

begintalknode 93;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "What do you think of the other wards?";
	text1 = "He shakes his head. _Much nicer. Better buildings. Better statues. Better maintenance. The coastal provinces always get the best of everything._";

begintalknode 94;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "I can't get a room?";
	text1 = "_Not here, not anywhere in the wards, not until well after the Council meets._";

begintalknode 95;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Let me see your menu.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("The Roasting Ornk",
		  "The Roasting Ornk has a variety of fine food and drink. Including, of course, roasted ornk.",
		  65,6,0);	
	break;

begintalknode 96;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "There is something else I'd like to know.";
	text1 = "_Sorry. I'd love to trade rumors all day, but ..._ He waves at the horde of hungry customers. _Maybe we can talk later._ He walks off.";
	action = END_TALK;
	
// 110


begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Incantatrix Seling";
	text1 = "This magical workshop is one of the nicest you've seen since you began your travels. It features the newest innovations in crystal and magical equipment, fresh from the coastal provinces.";
	text2 = "The alchemist in charge greets you. _A traveling adventurer! Nothing more I like to see. I am Incantatrix Seling, and I have a variety of goods that I think will be of great use to you. Especially since I hear you have the ear of the Council._";
	text5 = "Incantatrix Seling says, _Still interested in pods? Or magical equipment? I am eager to aid anyone who has the ear of the Council._ She gives you a conspiratorial wink.";
	action = INTRO;

begintalknode 111;
	state = 110;
	nextstate = 111;
	condition = 1;
	question = "Nice workshop.";
	text1 = "_Thank you. Everything clean, everything new. All the best innovations from the artisans of the Nodye Coast._";
	
begintalknode 112;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "The Nodye Coast?";
	text1 = "_To the northwest. I see you've never been. That is where I am from. The first Shaper province, home to all of the greatest artisans._";

begintalknode 113;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "I haven't seen anything like this east of the mountains.";
	text1 = "She shakes her head sadly. _A painful thing. There is a real sales opportunity there, but the quarantine makes it impossible to send Astoria and Alwan the things they want to buy._";
	text2 = "_But if it keeps the rogues from infecting the untouched provinces, it is worth it._";
	
begintalknode 114;
	state = 110;
	nextstate = 112;
	condition = 1;
	question = "Can you teach me any magic?";
	text1 = "_Ahhhhh ... No. The Shapers up here are very touchy about the laws regarding who can learn magic and who can't. It's not loose like it is to the east._";
	text2 = "_Of course, I am interested in gaining a license to gain more spells, and to teach them. But, to do that I need the help of someone who has the ear of the Council._ She looks at you meaningfully.";
	text3 = "_Of course, with your help, that might change._ She smiles.";
	code =
		if (gf(78,8) == 0)
			rs(3);
			else rs(2);
		if (gf(100,23) > 0) {
			rs(2);
			rs(3);
			}
	break;
	
begintalknode 115;
	state = 112;
	nextstate = -1;
	condition = gf(78,8) == 0;
	question = "How do you know I am going to see the Council?";
	text1 = "_Rumors. Keeping track of who can see the Council and who can't is the main way to pass the time up here._";
	
begintalknode 116;
	state = 112;
	nextstate = 113;
	condition = gf(78,8) == 0;
	question = "What sort of help were you thinking of?";
	text1 = "_Well, say I gave you five hundred coins. Might you then see your way to mention my name to the Council. As a loyal servant of the Shapers. If it comes up._";
	
begintalknode 117;
	state = 113;
	nextstate = 110;
	condition = 1;
	question = "All right. Pay me.";
	text1 = "She counts out a pile of gold coins into a satchel and hands it to you. _Please let me know how things went after the meeting._";
	code =
		sf(78,8,1);
		change_coins(500);
	break;
	
begintalknode 118;
	state = 113;
	nextstate = 110;
	condition = 1;
	question = "Not really the business I'm in. Sorry.";
	text1 = "_Oh, well. Worth a try._";
	
begintalknode 119;
	state = 110;
	nextstate = 114;
	condition = gf(78,8) == 1 && gf(100,23) > 0;
	question = "The Council meeting happened.";
	text1 = "She looks at you eagerly. _And?_";
	
begintalknode 120;
	state = 114;
	nextstate = 115;
	condition = 1;
	question = "They didn't give me much of a chance to talk. You never came up.";
	text1 = "_What? You didn't even try? Didn't even drop my name? And, I suppose, after that poor showing, you won't even return my money._";
	code =
		sf(78,8,3);
	break;
	
begintalknode 121;
	state = 115;
	nextstate = 110;
	condition = coins_amount() >= 500;
	question = "No, I'll pay you back. (Return the money.)";
	text1 = "She takes the coins back. _Thank you. I do appreciate your honesty in the honorable way you handle your bribe._";
	code =
		change_coins(-500);
		sf(78,8,2);
	break;
	
begintalknode 122;
	state = 115;
	nextstate = 110;
	condition = 1;
	question = "It doesn't seem likely.";
	text1 = "_Fine. Then leave me. I can handle you being corrupt, as long as you're not dishonorable about it._";
	action = END_TALK;

begintalknode 123;
	state = 110;
	nextstate = -1;
	condition = gf(78,8) == 3;
	question = "I'd like to buy some pods.";
	text1 = "_Oh? Now you want my help? Not likely. You are not welcome in my shop._";
	action = END_TALK;
	
begintalknode 124;
	state = 110;
	nextstate = -1;
	condition = gf(78,8) < 3;
	question = "I'd like to buy some pods.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Incantatrix Seling",
		  "Incantatrix Seling uses her excellent resources to make an admirable supply of pods and spores.",
		  66,5,0);	
	break;

// 130

begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Commander Kiley";
	text1 = "You are hailed by a loyalist commander. He catches up with you very slowly. A recent wound has left him with a horrible limp. You stop so that he can catch up to you.";
	text2 = "He nods to you. _I only just heard that you arrived. I am Commander Kiley, watcher of the Citadel East Ward. I have a message for you._";
	text5 = "Commander Kiley says, _Is there anything else you need to know? I must return to my duties._";
	action = INTRO;
	code =
		sf(78,9,1);
	break;
	
begintalknode 131;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "Where did you serve before you came here?";
	text1 = "He sighs. _I was in the Storm Plains. I was in Fort Vengeance when the rebels drove us out of it. And I was part of the force that General Alwan sent to retake it._";
	
begintalknode 132;
	state = 130;
	nextstate = 132;
	condition = gf(78,10) == 0;
	question = "You have a message for me?";
	text1 = "_Yes. I received it the day before you arrived. Just a brief note. Before you can be allowed to meet with the Council, you must be evaluated. Go up to the Meeting Glade._";
	text2 = "_That is all it said._";

begintalknode 133;
	state = 130;
	nextstate = 133;
	condition = gf(78,10) > 0 && gf(78,5) > 0;
	question = "I went up to the Meeting Glade. And then I was attacked.";
	text1 = "You describe what happened. The commander looks alarmed. _How can such a thing happen here? In the halls of the Shapers?_";
	
begintalknode 134;
	state = 130;
	nextstate = 134;
	condition = gf(100,23) == 0 && gf(78,5) == 0;
	question = "I need to see the Council.";
	text1 = "_The Council is going to meet soon, but not yet. The Shapers will not be rushed._";
	
begintalknode 135;
	state = 130;
	nextstate = -1;
	condition = gf(100,23) == 0 && gf(78,5) > 0;
	question = "I need to see the Council.";
	text1 = "_You are fortunate. The Council is about to meet. The gate is unlocked. You can go through the tunnel into the dome now._";
	
begintalknode 136;
	state = 130;
	nextstate = -1;
	condition = gf(100,23) > 0 ;
	question = "I am going east to fight the drakons.";
	text1 = "He looks at you with naked envy. _I would give anything to be going with you._ He looks down at his twisted leg with disgust.";
	
begintalknode 137;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "Is that where you were wounded?";
	text1 = "_Yes. That was my final assault. My thigh was crushed by a trall's rock. Shaper magic kept me alive, and my days as a campaigner were over._";
	
begintalknode 138;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "How did you get here?";
	text1 = "_The borders are usually closed, but some people are allowed through. I was very lucky. I was brought up here to be tended to by skilled Shaper healers. It is only because of them that I live._";
	text2 = "_Then I volunteered for duty here. They were kind enough to give me something to do._";
	
begintalknode 139;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "Are you glad to be away from the war?";
	text1 = "He looks at you as if you are mad. _What? And let my fellows, the men and women I fought with, fight and die without my help? I would give anything to be with them again._";
	
begintalknode 140;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "Who was the message from?";
	text1 = "_It wasn't signed. A servile brought it from the dome. Said an Agent asked her to deliver it. That is all I know._";
	
begintalknode 141;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "Where is the Meeting Glade?";
	text1 = "He points to the northwest. _Up there. It's an old stone circle. Not used for anything for decades. It will probably be replaced with a workshop soon._";
	
begintalknode 142;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "And you knew nothing of it?";
	text1 = "_I swear. I only gave you the message the servile brought. Believe me, security is going to be dramatically improved. All serviles will be questioned. This will not happen again._";
	
begintalknode 143;
	state = 134;
	nextstate = -1;
	condition = 1;
	question = "What should I do in the meantime?";
	text1 = "_You have reached civilization! Visit our stores. Stop by the inn. Go to your appointment in the Meeting Glade. The gate will open soon enough._";
	
			
// 150 Schmader

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Schmader";
	text1 = "It is an unusual and luxurious sensation to enter a shop that is fully stocked. The shelves here are heavy with goods, some of them completely unseen east of the mountains.";
	text2 = "The proprietor is a small, wiry man in stylish clothes. He approaches you, notes your weaponry and equipment, and gives you a low, elegant bow. _I am eager to welcome a visitor of import to my humble shop._";
	text3 = "_I am Schmader, a humble merchant. I invite you to look at my humble goods._ How many times do you have to say 'humble' before it becomes the opposite of humble?";
	text5 = "Schmader is skilled at his work. He is constantly lurking nearby. Never close enough to make you uncomfortable, but always near enough to quickly answer a question.";
	action = INTRO;

begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = 1;
	question = "Tell me about your shop.";
	text1 = "_It has been in my family for several generations. We serve the Shapers and the most important of outsiders. And, of course, we are always looking for new opportunities._";
	text2 = "_You, for example, are going to see the Council. Or so I have heard. I want to make sure that you lack for nothing._";
	
begintalknode 152;
	state = 151;
	nextstate = 152;
	condition = 1;
	question = "What sort of opportunities are you thinking of?";
	text1 = "_I am pleased that you ask. The armies of the east need supplies. The quarantine is regularly broken so that they can be sent food, blades, batons, pods, and so on._";

begintalknode 153;
	state = 152;
	nextstate = -1;
	condition = 1;
	question = "And?";
	text1 = "_And I can deliver better goods for lower prices. However, to get the contract, I must get the attention of a Shaper with influence. This is difficult._";
	text2 = "_That is why it is so pleasing to meet someone who is going to go before the Council._";
	text3 = "He sighs. _It hardly matters now. My chance is lost. Perhaps when the Council meets again I can resume my efforts._";
	action = DEP_ON_SDF 100 23 0;
	
begintalknode 154;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "You want to look out for me, eh?";
	text1 = "_Oh, yes. For someone who has the Council's ear, you will find my prices to be most reasonable._";
	text3 = "_Oh, yes. You apparently no longer have the ear of the Council, but I will still give you the attention I give to any customer._";
	action = DEP_ON_SDF 100 23 0;
	
begintalknode 155;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "I want to sell something.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;
	
begintalknode 156;
	state = 150;
	nextstate = -1;
	condition = gf(100,23) == 0;
	question = "Let me see what you have for sale.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Schmader's Shop",
		  "You inspect Schmader's wares. You note that the prices he quotes are remarkably low. He must be trying to get in your good graces.",
		  67,1,0);	
	break;
	
begintalknode 157;
	state = 150;
	nextstate = -1;
	condition = gf(100,23) > 0;
	question = "Let me see what you have for sale.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Schmader's Shop",
		  "You inspect Schmader's wares. You note that the prices he quotes are quite high. The upcoming campaign must be driving the prices up.",
		  67,5,0);	
	break;

// 170

begintalknode 170;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Mudede";
	text1 = "This smithy is very large, but there is only one man working here right now. The many tools hanging from his belt are all well suited to delicate work. He is circling an anvil, looking at the odd, twisted metal thing resting on it.";
	text2 = "He seems lost in thought when you approach him, but you manage to get part of his attention. _What angle ... I am Mudede. Do you need help? ... Maybe silver? Maybe gold?_";
	text5 = "Mudede continues to look at the odd, tangled metal device he has been working on. You generally have to ask any question two or three times to get his attention.";
	action = INTRO;

begintalknode 171;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "What are you working on there?";
	text1 = "_Working ... Metal pure enough? We'll find out. Component. Shaper machinery. For pylons, I think._";
	
begintalknode 172;
	state = 170;
	nextstate = 171;
	condition = 1;
	question = "Tell me about this smithy.";
	text1 = "_Only me here. Other smith hired away. Do work. Maybe too tangled. Make larger? Would that work? Need better resources. From Council._";

begintalknode 173;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "Where did the other smith go?";
	text1 = "_Paid by northwest ward. More money there. Better supplies. Went away. Can't blame him. Quicksilver. Could use quicksilver._";
	
begintalknode 174;
	state = 171;
	nextstate = 172;
	condition = 1;
	question = "What sort of supplies do you need?";
	text1 = "_Enchanted anvil. Could do more work. Draw customers. Don't want to restart this thing. Bring people here. Invigorate the ward._";
	text2 = "_But need someone who sees Council. Someone to tell them about me._";
	
begintalknode 175;
	state = 172;
	nextstate = 170;
	condition = gf(100,23) == 0;
	question = "Perhaps I can speak on your behalf.";
	text1 = "He turns and looks at you, an unusual occurrence. _Yes. That would be good. Would appreciate it._ He returns to his work. A few minutes pass, and you suspect that he has forgotten everything you said.";
	
begintalknode 176;
	state = 172;
	nextstate = 170;
	condition = gf(100,23) == 0;
	question = "I wish you luck with that.";
	text1 = "He nods, barely distracted from his work.";
	
begintalknode 177;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "Can I sell something to you?";
	text1 = "He shakes his head, slightly annoyed. _Craftsman. Not merchant. Go to Schmader's shop. He can buy._";
	
begintalknode 178;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "Can I buy some of your wares?";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Mudede's Smithy",
		  "You take items of interest, carry them over to Mudede, and wave them in front of his face. He says a price without appearing to think too much about it.",
		  68,4,0);	
	break;
	
// 190

begintalknode 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Guardian Savage";
	text1 = "There is a Guardian sitting at this desk, reviewing his records and keeping track of the creations under his care. When he looks up at you, he can't hide the look of disgust.";
	text2 = "_Why are you here? I have little to say to you. I am Guardian Savage, a mere servant of the Shapers, no member of the Council._";
	text5 = "Guardian Savage looks up at you with irritation. _I have nothing to say to you. I see nothing of value coming from our conversation._";
	action = INTRO;

begintalknode 191;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "What is your purpose here?";
	text1 = "_I maintain the defensive force of creations. Keep them properly maintained. Absorb and recreate those that can no longer function._";
	
begintalknode 192;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "In case the Shaper Citadel is attacked?";
	text1 = "_Yes. Of course, that is nearly impossible. I feel there is no way the enemy can get a force this far west. But it is my job to be prepared._";
	text2 = "_After all, one Shaper is an army. Sadly, this applies to drakons too._";

begintalknode 193;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "Can you give me any training?";
	text1 = "_Only if directly ordered. I will not share our secrets with a creature such as you, no matter how much influence you have gathered._";
	
begintalknode 194;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "Why will you not speak with me?";
	text1 = "_You are at the heart of the Shaper Empire. If our laws have no meaning here, they have no meaning at all._";
	
begintalknode 195;
	state = 192;
	nextstate = 193;
	condition = 1;
	question = "And?";
	text1 = "_And you are a warped thing, bearing forbidden powers etched into you by forbidden means._";
	text2 = "_And, on top of that, a servile! A servile!_";
	text3 = "_Remember this. Whatever the Council says, no matter what you do, your existence is forbidden by our law. And, once peace has been won, there will be a reckoning._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(2);
	break;
	
begintalknode 196;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "Which means?";
	text1 = "He ignores the question. _I only hope I live to see it. Now go. I must work to defend the dome._";
	action = END_TALK;